package UIFree.effects.flames
{
	import UIFree.uif_component;
	
	import flash.geom.Rectangle;

	public class ef_duoFlame extends ef_flame {
		public function ef_duoFlame(parent:uif_component, ax:int=0, ay:int=0, awidth:int=0, aheight:int=0, atype:int=RECTFLAME, styleClass:String='') {
			super(parent, ax, ay, awidth, aheight, atype, styleClass);
		}
		
		override protected function paint(a_styleClass:String):void {
			var r1: Rectangle = new Rectangle(-width / 2, -height / 2, width, height);
			var r2: Rectangle = r1.clone();
			r2.inflate(-width / 5, -height / 5);
			if (type == RECTFLAME) {
				this.draw_rect(r1.x, r1.y, r1.width, r1.height, style);
				this.draw_rect(r2.x, r2.y, r2.width, r2.height, style);
			} else if (type == CYRCLEFLAME) {
				this.draw_circle(0, 0, r1.width, style);
				this.draw_circle(0, 0, r2.width, style);
			}
		}		
	}
}